package com.javaee.weixin.entity;


/**
 * 公众号用于调用微信JS接口的临时票据
 */
public class Ticket {
	
	private String ticket;//获取到的票据
	private long  expiresIn;//凭证有效时间：单位：秒
	// 获取临时票据的时间戳
	private long timestamp = System.currentTimeMillis() / 1000;
	
	public String getTicket() {
		return ticket;
	}
	public void setTicket(String ticket) {
		this.ticket = ticket;
	}
	public long getExpiresIn() {
		return expiresIn;
	}
	public void setExpiresIn(long expiresIn) {
		this.expiresIn = expiresIn;
	}
	public long getTimestamp() {
		return timestamp;
	}
	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}
	
}
